package com.ruoyi.common.utils.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Builder;
import lombok.Data;

@Data
public class BaseExcelInfo {

    @JsonIgnore
    @ExcelProperty(value = "行号")
    private int rowIndex;

    @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
    @ExcelProperty(value = "错误信息")
    private String msg;

    public int getRowIndex() {
        return rowIndex;
    }

    public BaseExcelInfo setRowIndex(int rowIndex) {
        this.rowIndex = rowIndex;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public BaseExcelInfo setMsg(String msg) {
        this.msg = msg;
        return this;
    }
}